<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>杨文杭 & 黄杰雯</title>
    <link rel="stylesheet" href="style.css" />
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
    />
    <meta
      property="og:image"
      content="http://wedding.applet.site/image/2.jpg"
    />
    <meta property="og:description" content="我们将在12月03日举行婚礼,诚挚邀请您的到来!" />
    <meta
      property="og:title"
      content="杨文杭&黄杰雯的婚礼邀请"
    />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>
  <body>
    <button onclick="toggleMusic()" id="music-btn">
      <i class="fas fa-play" style="display: none"></i
      ><i class="fas fa-music"></i>
    </button>
    <audio id="background-music" autoplay loop>
      <source src="music/marry_you.mp3" type="audio/mpeg" />
      您的浏览器不支持 audio 元素。
    </audio>

    <!-- Cover Page -->
    <div class="page cover" id="page0" style="display: block">
      <h1 style="margin-top: 20%" class="slide-down">我们结婚啦❤</h1>
      <h5 class="slide-up">在无尽的岁月里，轻握你的手，是我最温柔的诺言。</h5>
      <div
        class="bg-img"
        style="background-image: url(&quot;image/1.jpg&quot;)"
      ></div>
      <h2>
        <div class="slide-left">杨文杭</div>
        <div>&</div>
        <div class="slide-right">黄杰雯</div>
      </h2>
      <h3 class="slide-down">2023年12月03日</h3>
      <h4 class="slide-down">农历: 十月廿一 (星期日)</h4>
      <h4 class="slide-down">阳江市东平镇濠港海鲜城</h4>
      <button class="bouncy-button" onclick="startAutoPlay()">幸福时刻</button>
    </div>

    <!-- Photo and Text Pages -->
    <!-- Page 1 -->
    <div class="page" id="page1" style="display: none; background: white">
      <p style="margin-top: 10%"></p>
      <img
        src="image/2.jpg"
        alt="Circular Image"
        class="circular-image bounce"
      />
      <img
        src="image/we.png"
        alt="Circular Image"
        style="width: 100%"
        class="bounce"
      />
      <div class="slide-down" style="color: #d68d8d">
        <p>当你看到这份邀请函的时候</p>
        <p>说明我们的婚礼已经进入倒计时了</p>
        <p>很开心这一天</p>
        <p>你为我们而来</p>
        <p>很期待您及您的家人能来参加我们的婚礼</p>
        <p>一起见证我们的幸福</p>
      </div>
    </div>

    <!-- Page 2 -->
    <div class="page photo-page" id="page2" style="display: none">
      <div
        class="fullscreen-background slide-down"
        style="
          background-image: url(&quot;http://wedding.applet.site/image/3.jpg&quot;);
        "
      >
        <span class="sweet-love sweet-love-bounce">Sweet Love</span>
        <span
          class="sweet-love sweet-love-bounce"
          style="margin-top: -10px; font-size: 24px; letter-spacing: 6px"
        >
          save&nbsp;&nbsp;the&nbsp;&nbsp;date
        </span>
      </div>
    </div>

    <!-- Page 3 -->
    <div
      class="page photo-page"
      id="page3"
      style="display: none; flex-direction: column; height: 100%"
    >
      <img
        src="image/5.jpg"
        alt="Photo 3"
        class="img-right"
        style="flex-grow: 3"
      />
      <div class="slide-right" style="flex-grow: 1">
        <p>有一种感觉，虽轻描淡写</p>
        <p>却胜过千言万语</p>
      </div>
      <img
        src="image/4.jpg"
        alt="Photo 3"
        class="img-left"
        style="flex-grow: 2"
      />
    </div>

    <!-- Page 4 -->
    <div
      class="page photo-page"
      id="page4"
      style="display: none; flex-direction: column; height: 100%"
    >
      <img
        src="image/15.jpg"
        alt="Photo 3"
        class="img-left"
        style="flex-grow: 4"
      />
      <img
        src="image/14.jpg"
        alt="Photo 3"
        class="img-top"
        style="flex-grow: 4"
      />
      <div class="slide-right" style="flex-grow: 1">
        <p>在这繁华的世界里</p>
        <p>你是我唯一不变的信仰</p>
      </div>
    </div>

    <!-- Page 5 -->
    <div class="page photo-page" id="page5" style="display: none;">
      <div
        class="fullscreen-background slide-down"
        style="
          background-image: url(&quot;http://wedding.applet.site/image/9.jpg&quot;);
        "
      >
        <span class="sweet-love sweet-love-bounce">Sweet Love</span>
        <span
          class="sweet-love sweet-love-bounce"
          style="margin-top: -10px; font-size: 24px; letter-spacing: 6px"
        >
          save&nbsp;&nbsp;the&nbsp;&nbsp;date
        </span>
      </div>
    </div>

    <!-- Page 6 -->
    <div
      class="page photo-page"
      id="page6"
      style="display: none; flex-direction: column; height: 100%"
    >
      <img
        src="image/7.jpg"
        alt="Photo 3"
        class="img-left"
        style="flex-grow: 3"
      />
      <img
        src="image/8.jpg"
        alt="Photo 3"
        class="img-top"
        style="flex-grow: 4"
      />
      <div class="slide-right" style="flex-grow: 5">
        <p>在未来的岁月里</p>
        <p>愿我们的爱</p>
        <p>如初见般璀璨</p>
        <p>如初心般坚定</p>
        <p>执子之手</p>
        <p>与子偕老</p>
      </div>
    </div>

    <!-- Page 7 -->
    <div
      class="page photo-page"
      id="page7"
      style="display: none; flex-direction: column; height: 100%"
    >
      <img
        src="image/13.jpg"
        alt="Photo 3"
        class="img-top"
        style="flex-grow: 5"
      />
      <div class="slide-right" style="flex-grow: 3">
        <p>想带你去看晴空万里</p>
        <p>想大声告诉你我为你着迷</p>
        <p>往后的余生</p>
        <p>我只要你</p>
      </div>
    </div>

    <div class="page photo-page" id="page8" style="display: none">
      <div
        class="fullscreen-background slide-down"
        style="
          background-image: url(&quot;http://wedding.applet.site/image/12.jpg&quot;);
        "
      >
        <span class="sweet-love sweet-love-bounce">Sweet Love</span>
        <span
          class="sweet-love sweet-love-bounce"
          style="margin-top: -10px; font-size: 24px; letter-spacing: 6px"
        >
          save&nbsp;&nbsp;the&nbsp;&nbsp;date
        </span>
      </div>
    </div>

    <div
      class="page photo-page"
      id="page9"
      style="
        display: none;
        flex-direction: column;
        height: 100%;
        justify-content: flex-start;
      "
    >
      <img
        src="image/11.jpg"
        alt="Photo 3"
        class="img-left"
        style="flex-grow: 2"
      />
      <img
        src="image/10.jpg"
        alt="Photo 3"
        class="img-top"
        style="flex-grow: 5"
      />
      <!-- <p class="slide-right" style="flex-grow: 2;">The Proposal Moment</p> -->
    </div>

    <div
      class="page photo-page"
      id="page10"
      style="display: none; flex-direction: column; height: 100%; justify-content: start;"
    >
      <img src="image/2.jpg" alt="Photo 3" class="img-top" style="flex: 1;" />
      <div class="slide-right" style="flex: 1;">
        <p>2023年12月03日</p>
        <p>农历: 十月廿一 (星期日)</p>
        <p>阳江市东平镇濠港海鲜城 <a class="button-style" href=" https://uri.amap.com/marker?position=112.228333,21.738413&name=濠港海鲜城&src=mypage&coordinate=gaode&callnative=0">导航</a></p>
      </div>
    </div>

    <!-- Repeat for other pages with different animations and text -->

    <!-- RSVP and Details Page -->
    <!-- <div class="page container" id="page11" style="display: none"> -->
    <!--   <p class="date">Saturday, 18th June 2023</p> -->
    <!--   <div class="location"> -->
    <!--     <h2>Location</h2> -->
    <!--     <p>Garden of Dreams, Springfield</p> -->
    <!--   </div> -->
    <!--   <div class="rsvp"> -->
    <!--     <h2>RSVP</h2> -->
    <!--     <input type="text" id="name" placeholder="Your Name" /> -->
    <!--     <button onclick="submitRSVP()">Submit</button> -->
    <!--   </div> -->
    <!-- </div> -->

    <script src="script.js"></script>
  </body>
</html>
